<template>
	<view class="note-top">
		<view class="welcome-note">
			<view class="note-welcome-txt">
				<image src="@/static/images/index/welcome-icon.png" mode="widthFix" class="welcome-img"/>
				<view class="">
					欢迎来到宅小职工作台
				</view>
			</view>
		</view>
		<view v-html="noteInfo" class="note-val">
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			noteInfo: {
				type: String,
				default: ''
			}
		}
	}
</script>

<style lang="scss" scoped>
	.note-top{
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: $baseWidth;
		margin: 0 auto;
		margin-top: 64px;
		margin-bottom: 61px;
		// padding: 0 132px;
		.note-welcome-txt{
			font-size: 40px;
			font-family: PingFangSC-Semibold, PingFang SC;
			font-weight: 600;
			color: #32353A;
			position: relative;
			z-index: 2;
			.welcome-img{
				position: absolute;
				width: 70px;
				height: 54px;
				z-index: 1;
				top: -10px;
				left: 0;
			}
		}
		.note-val{
			width: 60%;
			font-size: 16px;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #32353A;
			white-space: pre-wrap;
		}
	}
	@media screen and (min-width: 0px) and (max-width:1024px){
		.note-top{
			flex-direction: column;
			padding: 0 20px;
			margin-top: 32px;
			margin-bottom: 16px;
			width: 100%;
			box-sizing: border-box;
			.welcome-note{
				width: 100%;
			}
			.note-welcome-txt{
				font-size: 20px;
				.welcome-img{
					width: 31px;
					height: 24px;
				}
			}
			.note-val{
				width: 100%;
				margin-top: 8px;
				font-size: 14px;
			}
		}
	}
</style>